package org.example.builder;

import org.example.entity.*;

public class TruckBuilder extends RaceCarBuilder{
    @Override
    public void setCarBody() {
        System.out.println("TruckBuilder");
        raceCar.setCarBody(new CarBody());
    }

    @Override
    public void setEngine() {
        System.out.println("TruckBuilder");
        raceCar.setEngine(new Engine());
    }

    @Override
    public void setGearBox() {
        System.out.println("TruckBuilder");
        raceCar.setGearBox(new GearBox());
    }

    @Override
    public void setTyre() {
        System.out.println("TruckBuilder");
        raceCar.setTyre(new Tyre());
    }

    @Override
    public RaceCar getRaceCar() {
        return super.getRaceCar();
    }
}
